package BaseClasses;

import java.io.Serializable;
import java.util.Date;

/**holds information about student parent*/
public class isRestricted extends User implements Serializable
{
	/**isRestricted holds a number ,that tell as which panel to show */
	private int isRestricted;
	
	/**
	 * Constructor
	 * @param uid : ID
	 * @param nameP : first name
	 * @param nameL : last name 
	 * @param addr : address 
	 * @param dob : date of birth
	 * @param pass : password
	 */
	public isRestricted(String uid, String nameP, String nameL, String pass , int role)
	{
		super(uid,nameP,nameL,pass,User.STUDENT);
		setRestricted(0);
	}

	/**
	 * Constructor
	 * @param uid : ID
	 * @param nameP : first name
	 * @param nameL : last name 
	 * @param pass  : password 
	 */
	public isRestricted(String uid, String nameP, String nameL,String pass)
	{
		super(uid,nameP,nameL,pass,User.STUDENT);
		setRestricted(0);
	}
	/**
	 * empty constructor
	 */
	public isRestricted()
	{
		super();
		setRestricted(0);
	}

	/**
	 * @return the isRestricted
	 */
	public int isRestricted() 
	{
		return isRestricted;
	}

	/**
	 * @param isRestricted the isRestricted to set
	 */
	public void setRestricted(int isRestricted) 
	{
		this.isRestricted = isRestricted;
	}
}
